package com.leapp.sk.ui.adapter

import android.content.Context
import com.example.mvp.adapter.BaseLibAdapter
import com.example.mvp.binder.BaseDataBinder
import com.leapp.sk.bean.ClassAlbumDetialEntity
import com.leapp.sk.binder.BaseBinder
import com.leapp.sk.viewdelegate.adapter.classs.ClassAlbumDetialTextAdapterDelegate

/**
 * 班级详情适配器
 * @author  chaohaipeng  on 2018/8/6.
 */
class ClassAlbumDetialAdapter (context: Context, mlist: List<ClassAlbumDetialEntity>) : BaseLibAdapter<ClassAlbumDetialTextAdapterDelegate,ClassAlbumDetialEntity>(context, mlist) {
    /**
     * 数据
     */
    val mList = mlist
    /**
     * 上下文
     */
    val mContext = context
    override fun bindEvenListener(viewDelegate: ClassAlbumDetialTextAdapterDelegate?, position: Int) {
    }

    override fun notifyView(viewDelegate: ClassAlbumDetialTextAdapterDelegate?, position: Int) {
        val get = mList.get(position)
            viewDelegate?.initData(mContext,get)

    }

    override fun getDelegateClass(): Class<ClassAlbumDetialTextAdapterDelegate> {
        return ClassAlbumDetialTextAdapterDelegate::class.java
    }

    override fun getDataBinder(): BaseDataBinder<*, *> {
        return BaseBinder()
    }


}